import request from "@/utils/request";

// 查询设施（垃圾桶）告警历史列表
export function listHistory(query) {
  return request({
    url: "/alarm/facHistory/list",
    method: "get",
    params: query
  });
}

// 查询设施（垃圾桶）告警历史详细
export function getHistory(alarmId) {
  return request({
    url: "/alarm/facHistory/" + alarmId,
    method: "get"
  });
}

// 新增设施（垃圾桶）告警历史
export function addHistory(data) {
  return request({
    url: "/alarm/facHistory",
    method: "post",
    data: data
  });
}

// 修改设施（垃圾桶）告警历史
export function updateHistory(data) {
  return request({
    url: "/alarm/facHistory",
    method: "put",
    data: data
  });
}

// 删除设施（垃圾桶）告警历史
export function delHistory(alarmId) {
  return request({
    url: "/alarm/facHistory/" + alarmId,
    method: "delete"
  });
}

// 导出设施（垃圾桶）告警历史
export function exportHistory(query) {
  return request({
    url: "/alarm/facHistory/export",
    method: "get",
    params: query
  });
}
